x11: Use gdk_window_get_screen() in the testutils
authorBenjamin Otte <otte@redhat.com>
Sat, 28 Aug 2010 23:53:58 +0000 (01:53 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 26 Sep 2010 13:11:33 +0000 (15:11 +0200)
gdk/x11/gdktestutils-x11.c

index f90bd04b0ea342ea1e6672969200a734dacd61ef..06e1c3697849e80c32de455cfc2adf2e5111826b 100644 (file)
@@ -102,7 +102,7 @@ gdk_test_simulate_key (GdkWindow      *window,
   g_return_val_if_fail (window != NULL, FALSE);
   if (!GDK_WINDOW_IS_MAPPED (window))
     return FALSE;
-  screen = gdk_colormap_get_screen (gdk_drawable_get_colormap (window));
+  screen = gdk_window_get_screen (window);
   if (x < 0 && y < 0)
     {
       gdk_drawable_get_size (window, &x, &y);
@@ -208,7 +208,7 @@ gdk_test_simulate_button (GdkWindow      *window,
 
   if (!GDK_WINDOW_IS_MAPPED (window))
     return FALSE;
-  screen = gdk_colormap_get_screen (gdk_drawable_get_colormap (window));
+  screen = gdk_window_get_screen (window);
   if (x < 0 && y < 0)
     {
       gdk_drawable_get_size (window, &x, &y);